package com.briup.searchengine.view.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
//@Entity
//@Table(name = "page")
public class PageBean {
    private String title;
    private double rank;
    private String uri;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private String img;
    private String  keyword;
    private  String  content;

    public PageBean(String title, double rank, String uri) {
        this.title = title;
        this.rank = rank;
        this.uri = uri;
    }
}
